{% extends "base.html" %}

{% block header%}
<title>项目配置编辑</title>
{% endblock %}

{% block content %}
{% with model_name='Project' url_prefix='/pack/project/project' %}
<div class="bar">
	<a>项目管理</a> -> 项目配置编辑
	<div class="buttons">
		<a  class="btn btn-app btn-grey btn-xs radius-4 pull-right submit"  />保存</a>
	</div>
</div>

<form action="{{url_prefix}}?id={{model.id}}" method="post">
	<table class="form2">
	<tr>
		<th>项目名称：</th>
        <td>
            <input type="text" name="pro_name" value="{{model.pro_name}}" required="required"/>
        </td>
	</tr>
	<tr>
		<th>项目代号：</th>
        <td>
            <input type="text" name="pro_tag" value="{{model.pro_tag}}" required="required"/>
        </td>
	</tr>
	<tr>
        <th>状态:</th>
        <td>
            <select id="state_type_select" name="state">
                {% for v,n in state_type %}
                    <option value="{{v}}" {% if model.state == v %}selected="selected"{% endif %}>{{n}}</option>
                {% endfor %}
            </select>
        </td>
    </tr>
</table>
</form>
{% endwith %}
{% endblock %}